package com.example.administrator.xiaoxiang.gen;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.example.administrator.xiaoxiang.entity.ShopingcartEntity;

import com.example.administrator.xiaoxiang.gen.ShopingcartEntityDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig shopingcartEntityDaoConfig;

    private final ShopingcartEntityDao shopingcartEntityDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        shopingcartEntityDaoConfig = daoConfigMap.get(ShopingcartEntityDao.class).clone();
        shopingcartEntityDaoConfig.initIdentityScope(type);

        shopingcartEntityDao = new ShopingcartEntityDao(shopingcartEntityDaoConfig, this);

        registerDao(ShopingcartEntity.class, shopingcartEntityDao);
    }
    
    public void clear() {
        shopingcartEntityDaoConfig.getIdentityScope().clear();
    }

    public ShopingcartEntityDao getShopingcartEntityDao() {
        return shopingcartEntityDao;
    }

}
